﻿@model Auction_Intranet.Models.InviteGroupMemberModel

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("Invite", "Groups", FormMethod.Post, new { @class = "invite-group-form black-shadow-box" }))
{
        
    <legend>Invite member to @Model.groupName</legend>
    <div class="invite-group-form-errors form-validation-display">
        @Html.ValidationSummary(true)
        @Html.ValidationMessageFor(model => model.groupMember)
    </div>
    <div class="hide editor-field">
        @Html.TextBoxFor(model => model.groupId, new { @class = "groupid-invite-form"})
    </div>

    <div class="hide editor-field">
        @Html.EditorFor(model => model.groupName)
    </div>
    <div class="member-label">
        <div class="editor-label">
            @Html.LabelFor(model => model.groupMember)
        </div>
        <div class="editor-field invite-group-form-input">
            @Html.TextBoxFor(model => model.groupMember, new { @class = "invite-group-input" , placeholder="usename"})
        </div>
    </div>
    <div class="invite-group-form-button">
        <input type="submit" value="Invite" class="input-button" title="Invite Member" /> <input type="button" value="Cancel" class="input-button" title="Cancel" onclick="javascript:document.location.href='@Url.Action("Index", "Groups")'"/>
    </div>
}
